I did some googling around. It looks like iMac displays are panels from LG, Samsung, possibly others, that use a standard interface (eDP, I believe). So (standard disclaimers apply), if you disassemble your iMac and find the model number of the panel, you can probably find a controller on Amazon, eBay, or elsewhere. You would also need a power supply.
Googling iMac lcd controller will turn up lots of hits, like this one: