Apple has had a patent[1] for like a decade at this point which involved placing an iPhone into a slot on a laptop so it could be used in a laptop form, with the phone itself serving as the touchpad.
This company https://nexphone.com/ has been doing something like that since 2016 but of course in a different way, by attaching the phone to a laptop shell or more simply to a USB hub.