Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Nope it doesn't work. This has been discussed before several times. Since iMacs got thunderbolt (late 2012 model), using the iMac as an external PC display is not possible. This is an unnecessary limitation afaik, so you could always send Apple a complaint...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.