How can you extend FViewport?

I’m trying to override a function in the FViewport class, defined in UnrealClient.h. Previously I’ve extended the UGameViewportClient class, but that was different: there is a config line in BaseEngine.ini that explicitly sets the class to use for GameViewportClients. However, there is no similar config line that sets the class for Viewports. How can I get the engine to use my custom FViewport subclass so I can override its virtual functions?

I would very much like to know the answer. Did you find a solution for it?