Adjust size, title, and position of the window