Actually, my research shows that the 2009 iMac was the last one that offered this functionality, which is described in 2009 as "27-inch models also support input from external DisplayPort sources (adapters sold separately)."
This matches my recollection that my 2008 iMac had this feature, and the one my wife got in 2012 did not.