I am trying to figure out how to determine which document tab was most recently active. For example, I might have two sets of tabbed documents and I then click on a toolpanel. I suppose I could maintain a list of recently clicked tabs and grab the topmost one, but I assume there is a built-in way to do this. How can I determine which document tab was most recently active? I hope this question is clear.