I can confirm that this works with a Late 2012 (slim) iMac 21.5" So I don't see why it wouldn't work with a 2013 model. Maybe it has to relate to the Intel Iris graphics? No clue.
Had to do it one day with a Mac mini (also a Late 2012) and it worked fine.