Exposing UI elements are open and are in focus?

 I'm looking into developing a plug-in that exposes what is in focus in the user interface. in addition expose which parts of these UI are open. A small example of what I hope to accomplish using the example of the "Search and Replace". I need to know if "Search and Replace" is open and if it's in focus or not. This will be implemented for every aspect of the user interface. Could someone point me in the right direction?

Please sign in to leave a comment.