2nd gen V8 Explorers had 2WD or AWD. 2nd gen V6 Explorers were available as 2WD, A4WD, and maybe straight 4WD. To install the 2nd gen A4WD system on a similar Ranger would require the entire transfer case because it has a clutch that the normal 4wd does not have, It would also require the entire control because there was coding and/or sensors that did not exist in the Ranger. Even with all of that, you would be in uncharted territory.
If it was on the Ranger Raptor, there is a chance it is available on other Rangers of those same years and just software disabled. If it is someone with Forscan and the will to experiment could probably figure out how to turn it on.