How to set initial size of the main window?

You can add slicer.util.mainWindow().showMaximized() to the startup script to maximize the window. You can use any other Qt functions to position the main window anywhere.