Thank you, Willem.
Here’s a working example for others:
import scriptcontext
# Open "Focus_Test.3dm" prior to running this script
def FocusFloating():
views = scriptcontext.doc.Views.GetViewList( True, False )
for view in views:
if( view.Floating == True ):
scriptcontext.doc.Views.ActiveView = view
print view.MainViewport.Name, "should now be the active/focused upon viewport"
if __name__ == "__main__":
FocusFloating()