Better handling of the Windows tray icon click.

The tray icon click was previously a toggle, it would show window when closed, and hide when open. Now it will also show when open but not fully visible to the user. Thanks to Mike Gelfand (https://github.com/mikedld) who wrote the original code. Since copyright has been disclaimed I hereby take it.