uiutils module

uiutils.fitWindowToScreen(pos, width, height, center_on_pos=False)
uiutils.getScreenRect(pos)