Migration Assistant ... transferring from a Mac G5 with no display to 2014 iMac
Target disk mode is the answer. In my experience, there's a pretty good chance it will work even if the display is dead.

If Target disk mode fails, you could easily remove the hard drive and connect it to a SATA dock and transfer that way.