dhtmlxwindow absolute / relative position

can the viewport position be relative? how do i make it adjust for different resolutions?

You can
a) assign vieport to whole body, so it will automatically adjust to  used resolution
b) you can use any object on page, as base for you viewport
    dhxWins.setViewport(0, 0, parentObj.offsetWidth, parentObj.offsetHeight, parentObj.id);