Implement "minimize to tray" for applications that don't support it