You can inherit from FPrimitiveSceneProxy, override the ‘GetDynamicMeshElements’ method, using Collector.GetPDI() to get a FPrimitiveDrawInterface, then using its DrawLine method.
Here is an example.
You can also check my Grid plugin, the LineComponent and GridOutlineComponent maybe helpful.