You normally have to strip the loom out of the tailgate when swapping them, if there is anything different on the replacement tailgate, allt the electrical components, trim panels, etc., can be swapped over too if necessary.
The actual pressings for the tailgate are the same from 2002 right through to 2008.