There is still one edge case where I want to close my window and another UI from another addon is active at the same time which will just close because of the toggle.
Need to figure out how I can get the number of all active fragments? in a scene and if there are more than two, just close only my own window.
I don't even know what type my GUI is, which is defined in my XML file. It must be a kind of control or fragment.