bool isVisible(string widgetName)

Check if part of the window is visible (returns true) or hidden (returns false) widgetName specifies which part:
commandline Command line
rightside Right side tools (Tree Window and property editor)
propertyeditor Property editor
tree Tree window
statusbar Statusbar