Target Display Mode
The late 2009 iMac 27" supports “video in” to turn the display into an external monitor for another device through the Target Display Mode feature:
http://support.apple.com/kb/HT3924
An iMac in this mode still runs applications. It requires a third part Mini DisplayPort cable to function, as Apple has specifically stated they will not be producing such an adapter.