Move and Resize the window with the mouse