The method to get the current panel

Is there anyway to detect wether the panel is the current panel is windows?
from the rhinocommon help file, I find Rhino in Mac has an way IsPanelVisible()to
detect the panel is the current panel or not.