Made it possible to set the minimumsize of a system window before showing it.
More debugging polygon code.