Are you talking about swapping in a newer 6.4 Hemi, or building your own? The newer hemis have Variable Valve Timing (VVT) which will need dealt with, and a bunch of other odd ball things that will come up with. Now with that being said, the 2009 2500 was a 3rd gen body style that had the newer motors installed in them. There may be some possibilities of getting the wire harness and computers from them and it might work in your 07.
Now you really need to think about costs. Exactly how much is your budget, and how good of a mechanic are you? This will be a full blown project, nothing it gonna be simple.
My opinion is build what you have. My truck is an 03 with a 392 stroker, I built it myself and it’s finally getting to the point I have some real power. I got a lot more upgrades to go in but it’s been a fun project. But I’m promising you it’s gonna be between $5,000-$10,000 when it’s all said and done. You can have try to save some money and do it cheaply but in the long run you will probably have problems. Let alone trying to find a 6.4 motor for a decent price is half the battle. And then after all that you are gonna have to deal with the weak transmission in your own truck, that’s a whole different ca of worms that gets even more expensive