How to mirror a selected area/window in primary display to second display

I want to project only a selected area or an application window to the external monitor. Is there any software that can do that kind of thing?


OBS — Open Broadcaster Software

  1. In System Preferences → Displays, do not use Mirror Displays.
  2. In OBS, click the + button under Sources and choose Display Capture.

  3. Set ‘Display’ to your normal display.

  4. Set Crop to your preferred method of cropping, such as Manual or To Window and configure the crop settings below. Click OK.

  5. Use the red handles to resize your Display Capture source appropriately within the black ‘display’ (preview) in the OBS window. This is how/where your display will show on the mirror.

  6. Right-click anywhere in the preview and choose ‘Fullscreen Projector (Preview)’, then select your external display to output to.