The outline shader from the Unity runtime isn't easily translatable to Unreal. I'm afraid I'm not well versed enough in Unreal to give guidance on how to achieve this. I found a bunch of UE5 tutorials for outline materials, but I'm not sure this translates to 4.26.
This seems to be the best I could find.