Connect my 2015 Macbook Pro to my 2019 iMac as an external monitor
Some newer iMac models cannot be used as external monitor for another Mac.


Use your iMac as a display with Target Display Mode - System Requirements



  iMac (Retina 5K, 27-inch, Late 2014) and later iMac models can't be used as Target Display Mode displays.