internal void DestroyWindow() { if (window != null) { window.Destroy(); window = null; QueueDraw(); } }