Can I use my early 2009 iMac as an external screen? I have an early 2009 iMac (24" version). It has a mini display port in the back. Is it possible to use it as an external screen? If so, how do I do it? And can I attach all kinds of devices, e.g. a Raspberry Pi (with an appropriate adapter cable)?
The specifications for the 24" Early 2009 iMacs according to eveymac.com and the Apple Manual for the Early 2009 series of iMacs does not mention target display mode as a feature.  That unfortunately means that the Early 2009 generation of iMacs did not offer a target display mode so you will not be able to use that displayport output as an input source.