Currently it is quite a hassle to script similar functionality as is already found from the toolbar. Add new element which could be used for this purpose, it should also auto-update. This is fairly common type of element I add to my user-interfaces to let user change current data table, bring it to front or to just quickly see what is current data table.