Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
iMacs new or old have ports for display out only, not for input. You cannot use an iMac screen as a display for anything.

By the way it has a DVI port, not a VGA port. VGA output is via an adaptor from the DVI port.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.