This is a method of the IDirect3dRM Interface.
public Direct3dRMViewport createViewport(Direct3dRMDevice dev, Direct3dRMFrame fr, int l, int t, int w, int h);