Welcome to the forum
Have you measured the opening and then the wall where it would retract into? Once you’ve determined that there is enough depth, then you have to determine if the wall is “hollow” or has studs for the wall panels to be stapled to.
If all the above conditions are met, then you’ll need to open up the wall to install the track for the door to open/close. You will have to apply edge trim at the opening, and put the wall panels back on without damage.
Can it be done? Probably, would I do it? Probably not. It’s not going to increase the value enough for all the work needed IMO, YMMV.
__________________
2012 Copper Canyon 273FWRET being towed by a 1994 Ford F350 CC,LB,Dually diesel.
Airlift 5000 bags, Prodigy brake control, 5 gauges on the pillar.Used to tow a '97 Jayco 323RKS.
Now an RVIA registered tech. Retired from Law enforcement in 2008 after 25+ yrs.