You might find yourself to be a ground breaker, doing a conversion rarely if ever attempted by anyone else.
IIRC the 4.0 shares a bellhousing pattern with the modular 4.6, tranny & fuel injection unique to that family would need to be used.
Another more commonly done conversion may be a wiser choice.