Target Display Mode between a Dell XPS and 2013 iMac
Solution 1:
I'm pretty sure it can't be done - but I can't find anywhere that categorically says so.
Two reasons in your particular case.
The iMac 2013 needs Thunderbolt to Thunderbolt, not mini Display Port.
Both machines need to be running macOS to enable the function.
Macs running Windows in Boot Camp cannot use Target Display Mode.
Background info from Apple KB - Use your iMac as a display with Target Display Mode
Also - Using MacBook Pro as keyboard/mouse for Windows computer for alternative methods of displaying one machine on another.