How to create a VariantSetLevel from code

Hi, I’m trying to duplicate a LevelVariantSet from code and change its reference to a new instantiated object. The duplication seems to works, but when I try to apply a new configuration to the new object it doesn’t work. It seems that the problem is that the created object is set as transient, and looking through the code of the VariantManager plugin, you can only work with already present actors.
Is it possible to do what I’m trying to do?
Thanks for all the answers.