I just read this page, and there may be version or year restrictions with target display mode on an iMac:
https://support.apple.com/en-us/HT204592
.
__________________
2015 BMW i3 BEV, Giga World (Lodge interior), Tech/Driving Assist Packages, 30K miles