Keep wxFileDialog HWND valid until it's dismissed in order to allow any operations involving the dialog geometry to work correctly while it's shown, so that e.g. resizing windows from the custom controls event handlers works.