Yes, 2005 would be best year with no PATS for the computer and cluster, and engine wiring harness
There are ALWAYS some wiring difference between EVERY YEAR, on all vehicles, lol, not a Ford thing
And 4cyl wiring would obviously be different than V6 wiring, but mostly taken care of by engine wiring harness swap
Ford used a one connector 104 wire plug for computer thru 2006, in 2007 they switched to a THREE connector plug for a three connector computer
So a few wires will need to be re-pinned if you use a 2006 or older computer
If you use a 2007-2011 computer then no re-pinning.............maybe, as said above there are ALWAYS Changes, and you would need to re-program PATS
You need to get a 2011 Ford Ranger "Wiring Diagram" book, Ford makes these and sends them out to Dealer Shops every year for every model, with the "Shop Manual Set" for that model
The "Wiring diagram" book is often sold separately
2011 book looks like this:
https://i.ebayimg.com/images/g/qgEAAOSwAzZdl19Q/s-l300.jpg
It shows location and colors of all wires that one year for that one model, "Ranger", also includes different engine sizes and options wiring for that model
Then you would also get the same Ford book but for the YEAR of the Donor vehicle
These are often sold on ebay, and they are basically "free" because you would sell them, usually for what you paid for them, when you are done using them