Get the parts from as close to your truck as possible, my truck is an 03 and I found an 02, Lucky.
If you want everything to work as OEM then you need the GEM and other parts that I am not qualified to list.
There is a great How-To about using OEM parts but wiring them separate from the OEM Harness.
You get all of the OEM wiring you can from the donor truck but hook up a separate hot and grounds.
Try this: How-To: Power Window Swap Using OEM Parts
Cory wrote a great How-To, kudos…
IF I can ever get my shop cleared (lazy) I will be following the above writeup.
4x4, 5sp, Std Cab, Stepside, E4 Red
4” Lift - Coil-Overs, 6” SkyJacker Leafs - No Blocks (Mistake)
31 Spline FX4 Rear Axle, 4.56s and OX Locker, Hurst Shifter w/Optional Stick and "Made by Grev" alignment adapter