Reset main window to its original position if it is outside the screen