Unless your 2011 iMac has a mini DisplayPort (or Thunderbolt) port, I don't believe it can be used as a 'monitor' in the traditional sense.
Otherwise, you'd have to find a way to convert the display "out" from any device, to the ribbon cable to provide display to the screen. I'm sure it's theoretically possible, but not likely too viable for most people.