Use a 2015 27-inch iMac as a monitor for your Mac (5K, 60 Hz)
Apple’s Target Display Mode never worked on the 5K iMacs. SunSprout does that job in software, over the Thunderbolt port the iMac already has.
What you need
iMac Retina 5K 27-inch, Late 2015 (iMac17,1), macOS Monterey 12.7
iMacs from late 2012 to 2015 need Apple’s Thunderbolt 3 to Thunderbolt 2 adapter and a Thunderbolt 2 cable. 2017 or later iMacs, the 24-inch ones included, need one Thunderbolt 3, 4 or 5 cable. From a Mac with Apple silicon, any iMac up to 2020 also works with a USB-C to USB-A cable rated 10Gbps, 1 m or shorter: it costs less, and the picture is not as smooth as over Thunderbolt. The cables page lists what each iMac needs.
What you get
5K at 60 Hz, 10-bit P3, a median 4 ms switching desktops
Yes: 5120 × 2880 pixels at 60 Hz, in 10-bit Display P3 colour. The iMac shows exactly the pixels your Mac draws, still or moving: nothing is compressed with loss at any time. In heavy motion on a slower cable, SunSprout sends fewer new frames rather than softer ones.
How to set it up
Install SunSprout on your Mac. Put SunSprout Display on the iMac. Plug in the cable.
My iMac has pink edges. Can you fix that?
That’s a known defect of some 2014–2015 5K panels. While the iMac is your Mac’s display, SunSprout evens the edges out. On the iMac’s own desktop, UnPink, sold separately, measures your panel from three photos and evens them out.