Set the expand property of the drawing area to TRUE so that when you resize the window, the drawing area can resize accordingly.
This is the ultimate solution to commit d186edd0 and 017f3672.
#3 (closed)
Save window state including maximization, position and size. Restore them when the application is launched.
#4 (closed)