setWindowPosition function

Change the position of the current window.