Make sure the 3D visualization dialog sits on top of everything

This only affects Windows as other environments dont use this.
Refs #10798
Process all pending GUI events before loading Mantid

Refs #10798
Merge remote-tracking branch 'origin/bugfix/10798_setup_pv_z_order'