Red Adding method to set dimensions of MainWindow.