How to deepcopy a component using python script?

I want to deepcopy a component and transform the new component to any position I wanted and the old component keeps the same position . How could I achieve it?
It looks like as below:


I need to move window2 to window1 and meantime window2 will keep in the same position.

image

I know that the function of transform could change the positon, but how could I recreate an existed component?

There's no documented or supported way to do this. You have to create from scratch and add to the container, configure layout, construct bindings, and get everything started. There be dragons.

However, there is system.nav.openWindowInstance() available to create multiple of the same window.