Create a duplicate diagram in a new window

As the title, i want to create a duplicate diagram ( not a blank one). For example the sample , as the i’m editing it and i want to make a copy of what i’m editing so far , in a new window. How can i do that ?


The normal way to implement such functionality would be to make a copy of the model and assign it to the second Diagram, which presumably shares the same templates (e.g. Diagram.nodeTemplateMap et al.). This is basically as if you had saved the diagram and then loaded it in again, but into a different Diagram.