Since the rear trailer camera system is on the Can bus, you'll have an easier time achieving this by utilizing the coaxial cable setup via the front camera emblem. Have a 2 in, 1 out Fakra switching box and supply the extra power necessary for the Thermal camera requirements via an upfitter switch.
A single upfitter could even do the switching of both the video input, and powering on the Thermal camera. Link to switch box below that can be triggered with a +12V input
Should get you started with something to play around with. Now, find a thermal camera with the size you want and an analog video output, and mount it up. Most have a 75 ohm output, and Fakra is either 50 or 75 ohms so that will need dealt with if they don't match (not hard). Small Thermal camera link below:
Worth noting that the camera in motion will need fixed/dealt with so the front camera input to the infotainment system doesn't shut off above 5mph.
www.drone-thermal-camera.com
Interface Part No.: SW-V2X1-FAK Vehicle Applications - Following Land Rover, Porsche & Mercedes models: Vehicle Series Year System Land
media-in-motion.co.uk