FPMIWindow window - A reference to the window to close.
String windowPath - The path of a window to close.
# This example would get the window named 'Overview' and then close it.
# If the window isn't open, show a warning
window = system.gui.getWindow('Overview')
system.gui.warningBox("The Overview window isn't open")
# This example would close the window named 'Overview' in one step.
# If the window isn't open, the call to closeWindow will have no effect