Switching focus between two open UI

I need to find a way to switch focus between existing open documents/views/folders that are showing on my workspace.

Is there a way in LS to query the workspace, look for a specific tab, and switch focus there?

Any help will be great. Thanks.