How to spawn custom actor in editor

I got some custom actors written in c++. Now I would like to spawn them to the world in the editor (i.e. similar to draggin and dropping from the modes panel).

I don’t want to use blueprints.

I know there’s the way to edit PlacementModeModule.cpp (basically hardcoding), but that’s not very friendly (and I got some problems with this method lately).

OK, figured out you can just drag’n’drop c++ file into the world to instantiate the actor. But to do that your module have to be under your project tree and shown in the editor.