Implement Window maximize, minimize and restore