How to use d3d functions( i.e. DrawLine) in ue4?

I have a project done in d3d that I want to transfer to ue4 to apply VR. The problem is how to migrate such a project to ue4. I think the ue4 supports d3d implementations but I don’t know how to link my project to ue4. Is there any way to make this issue easier out there? can I use the d3d functions in ue4 like those of DrawLine types and ofcourse all the d3d functions to draw shapes and other?