Basically, what I need is to go through the DiagramObjects, and if the tagged value is set to true, I want to add the object to my custom tab. This way, the user can see the original view of the diagram and an alternative view in a separate tab.
As far as I understand, for the custom view, I need to write my own class that extends UserControl. This class can be added through the Repository.AddTab() function. Therefore, I believe I need to add the DiagramObject somehow to the UserControl so it can be displayed in the custom tab.