setWindowPositionOld function

Change the position of the specified window.