No, this is not safe. Your code may cause the window handle to be created with reference to the wrong topic.
Do not use the graphical interface to store the state of your applications. Use the graphical interface to display the view in this state. Once you separate the state from the species, you are at home and dry. Your workflows can use the ground state without touching the graphical interface.
source share