#25432 Pops up a warning if a UI is launched from the python shell.
This shell runs in a different thread on houdini, generally causing any
QT call issued from it to crash. This change helps prevent those
crashes.