How can I create an outline highlight similar to the one used in the editor?

Probably this helps you: https://forums.epicgames/threads/865957-Object-Mesh-Outline-Effect-working