I have been searching for a long time for the answer to this question.
I have a Dell XPS laptop with minidisplay port out and a 2013 iMac.
Can I buy a mini-display port cable and connect it to the thunderbolt port on the mac and use Target Display Mode.
or
Can I buy a thunderbolt cable and connect that to minidisplay port on the Dell and use target display mode