I revived a late 2013 iMac that was collecting dust, and was disappointed to find that Target Display Mode no longer worked. So enter OpenCore Legacy Patcher, and now I'm now running MacOS Monterey with Universal Control and Airplay Receiver. Open source software is pretty great.