How to add c++ classes to the editor interface?

I’ve defined a c++ class and a UI button.To do this, I press this button to automatically find the c++ class and drag it to the level I’m currently opening.This is done in the editor interface, not in the playback interface.