Mouse click not working in viewport window.

Hi!
I need to output the entire viewport in the window widget, but when I did that. mouse clicks don’t work there. I use USceneCaptureComponent2D. How to match a click on a window so that it falls into a real viewport?