How should a ViewItemPlugin be instantiated dinamically?

I’m working with dynamic views in floating windows. Mainly to create a specialized alarm preview depending on the alarm to see. Given the case, we have a viewItemPlugin that needs to appear within the window if we get a particular alarm. How should the object be instantiated to work in the same way they do when in the usual context? Is there a specific way as if you were creating a new window? or do we have to approach them differently?

Does the Smart Client Insert Camera plugin sample give the answer?

https://doc.developer.milestonesys.com/html/index.html?base=samples/pluginsamples/scinsertcamera/readme.html&tree=tree_1.html

Yes, It does the trick! Thank you!