Create a level in C++ at Edit time. Where?

Thanks, I don’t understand how the construction script can place an actor at edit time. I need still to call world->SpawnActor which to me is only working after game has started, but NOT at edit time.