RenderResource.h notes the solution via this comment:
/**
* NOTE - Adding new virtual methods to this class may require stubs added to FViewport/FDummyViewport, otherwise certain modules may have link errors
*/
The files you need to add stubs to are:
- UnrealClient.h
- SceneViewport.h