While dragging or resizing the window, the application will "halt" in the event processing, which leads to no rendering shown. In most cases this rarely matters, but if you don't want it, you can process events in a separate thread - which of course will bring in its own troubles.