How to set initial size of the main window?

If you need a workaround you can also do something like slicer.util.mainWindow().setGeometry(20,20, 500, 500)