F40: Add posibility to maximize window on double clicking the title.

Window can now be maximized and minimized by double clicking the title.
But this is only true for maximizable windows.