Fix ShowIconOnTitleBar=true + TitlebarHeight=0

`ShowIconOnTitleBar=true` together with `TitlebarHeight=0` results in any clicks on the window closing it.

Fixes #1124