#Windows
You can find a pointer (BPTR) to the CLI window in the process structure of
your program, if it was started from the CLI. You could activate that
window and since only one window can be active, yours would be
de-activated. If your window wasn't created from the CLI you might be able
to cruise through the linked list of screens and look for opened windows. I
think the workbench always has an opened window.