Study the elecrical specs.
Then remove the entire harness, fix faulty wires. Even the working tailgates typically have exposed wires between the body and tailgate.
Learn how to repair wire correctly:
http://fordfuelinjection.com/how2solder.html
I have posted about bent latches, which can be bent back, and I assume you could weld in re-enforments
I took out the main center latch, and cut off the bottom rod, which tells the latch when the window is down.