How to create a BP function with c++, which I can access from any Blueprint?

Oh, but my function needs to return dynamic object!!!