Yes the previous iMacs sent a signal. Their current computers don’t receive the signal. This is not about the 5K display, you’re missing the core problem. It stopped working when the silicon line came out. You can’t get any iMac to work in target display mode on silicon Macs.
That’s not a technical limitation, that’s laziness. Go read more about this. It simply doesn’t work anymore without 3rd party solutions.