Yes, that is possible and has been done before. Sportsmobile used a similar system on their van campers with pop-up roofs because normal RV A/C couldn’t be mounted on moveable fiberglass roof panel. I haven’t looked in years so don’t know if they still use them.
It ends up similar to a mini-split A/C with compressor and condenser under floor, with evaporator mounted somewhere inside motorhome.
Before that Sportsmobile (many years ago) had a system that used the Ford A/C condenser to cool the “house” with a separate electric compressor piped in parallel with engine-driven compressor.
Lots of ideas can work as long as higher cost isn’t a problem.