Only the W56, G52 and G54 use the gear drive RF1A transfercase. W59s (Tacoma-style 4cylinder 4WD) and G58s (some 3rd gen 4cylinder 4Runners) use chain drive VF1A transfercases.
As for the tail housings of the G50/54 and the W56, yes, they both have the same rear mounting flange, but the housings themselves are
not interchangeable. I do not think you will be able to use any style W-series transmission with the NP t/case...