Is there a way to create an outline for an actor in a custom viewport with c++?

I’m trying to create an outline for an actor in a custom viewport, I was wondering if there is a way to do that with c++, similar to selections in the level editor viewport.

Check out custom render depth on post-processing :slight_smile:

Downwoting as it is commercial content not an answer.