How do I get reference to FPrimitiveDrawInterface?

I need to get a reference to FPrimitiveDrawInterface in order to draw a custom shape in Unreal. However, I am able to get this reference only when make my own component that inherits from UPrimitiveComponent and thus gives me access to CreateSceneProxy().

I was wondering how to get a reference to FPrimitiveDrawInterface in my custom GameViewport class like the way it happens in EditorViewportClient.h. In that file, this function is overriden -

virtual void Draw(const FSceneView* View,FPrimitiveDrawInterface* PDI) override;

However, this function is never called in my GameViewport class. I have inherited my class from FViewElementDrawer which contains the required Draw function.
Does anyone have any useful suggestions? Thanks in advance.