PathTracer with SceneCapture2D

Hi,

I’d like to use the pathtracer to render using a SceneCapture2D instead of just the viewport.
So far I only found:

CaptureComponent->ShowFlags.SetPathTracing(true); // not exposed in the editor

but this doesn’t result in the same image as rendering in the viewport.
Is there a way to do that?

Thanks!