Setup of the main window geometry