I’ve learned that viewport types are stored as an element in Revit, and thus have their own properties. So the ATTEMPT above is collecting viewport types, but I’m not sure how to create a corresponding list of viewports in order to compare properties.
Based on this solution by @Konrad_K_Sobon