How to set the thumbnail of a custom C++ actor?

I have created a custom C++ class derived from AActor.
Is there any way to “hard-code” the thumbnail for this actor that is shown in the content browser?

Yes, search the engine for “Thumbnail” or “ThumbnailRenderer” and you’ll see the process. Paper2D has a good custom thumbnail renderer that you can look at for an example.