What all will fit?

So it looks like you have a 45RFE trans, same as the 545RFE. You will need a TCM to run that trans, and I think you will have problems getting a PCM that will run the 5.9 to work with any TCM. Which is why I think the 5.7 is the better swap if you want to run the 45RFE.

Otherwise I think you will need to find a stand alone controller for the transmission. No idea if they exist.

If memory serves (which is usually doesn't), the 5.7 swaps need a deeper flexplate when using a 727 which would mean (if I have it right) a 5.9 to 45RFE combination would need a shallower flexplate or (more likely) a shim between the block and bellhousing to push the trans back and maintain room for the torque converter.

The parts V6 Dakota should (I think) have a 42RE. This or a 46RE would be workable using the PCM from something with a 5.9.

The 2002 Durango was available with a 5.9 so you could maybe swap the engine/trans/harness from one of those.

Last option I can think of is to add a crank and cam sensor to the 5.9 that duplicates the 4.7 signals so the PCM thinks it is still running a 4.7. Might need to repin the connector to move injectors and coils around if the firing order is different.