How to import assets automatically through code and what is UPackage?

you very much for the heads up. I was able to port the code to blueprint within an Editor Utility Widget (UE4.26)

Here is what it looks like: