Hello,
I assume you are creating the windows dynamically. In such case to show a new window use the function Add() as shown below:
var SomeUnit::SomeGUIComponent window = new SomeUnit::SomeGUIComponent;
// Show the window within the root component
GetRoot().Add( window, 0 );
[...]
// or show it in context of the actual component?
Add( window, 0 );
To remove a previously presented window you use the function Remove() with the affected window as parameter:
// Remove the window always from its actual owner.
window.Owner.Remove( window );
Have you seen the section The classic approaches? Maybe it helps you further. Also interesting is the section Compose the component programmatically.
Best regards
Paul Banach