How would it be quite a job?
How wouldn't it be?! The electronics used to control a boosted, direct injected engine with cylinder deactivation, and variable valve timing are WAY more complex than anything that ever came in a Ranger. There is basically zero aftermarket for ECUs that can handle direct injected engines, and the few that exist cost thousands.
There's basically a zero percent chance that the Ranger trans would be compatible with any ecoboost ( other than the 4 cylinder Ecoboosts because they share a block with the Duratec 2.3 that came in 01+ Rangers) so you'd need to find a trans for a RWD application, and it would have its own controls and sensors too.
The only way that I see to really do this easily would be to find a wrecked F-150 with the engine and trans that you want. Remove the engine, drivetrain and all of the wiring out of your Ranger and then pull everything out of the donor including all of the wiring for the engine, trans, and dash. Once you get it to fit in the Ranger (nobody knows what is required to make happen) then you can go about eliminating the wiring that won't be needed to make it run. You'd have to be prepared to splice a lot because it's unlikely that electrical sensors and connectors from the Ecoboost truck would be compatible with the Ranger stuff, and I'm guessing that most of it would be connected.
If doing an entire drivetrain and wiring swap, and then figuring out what needs to be there to run, and what doesn't isn't 'quite a job', then you're a better man than I am.
You'd probably end up spending just as much or more putting an Ecoboost in your Ranger as you would just buying an F-150 that has what you want. But it's your truck and your money.