System tray minimize/maximize/restore functionality