views: Make it possible to show a window in maximized state

Fixes #834.