chinyoti, do you want to do this with the factory fitted keyless entry or the aftermarket ones ?
in after market ones, you can attach the wire that can be used for trunk lock to a relay, then to the rectracting wire of the mirrors,
but if you want to do with the factory fiitted keyless, i recommend NOT to fiddle with the original keyless entry as it may damage something costly (like ECU).
rest its up to you if have know how of these complex car electronics, then you can do a DIY on ur car keyless entry and retractab;e mirrors.
btw, retractable mirrors circuit alone is not a complex thing,
i havent checked in passo/vitz, but i have installed retractable mirrrors of some japanese baleno in my JXR,
you can check this thread,
https://www.pakwheels.com/forums/d-i-y-projects/187418-my-new-ride-baleno-jxr-2005-installed-retractable-mirrors
https://www.pakwheels.com/forums/d-i-y-projects/194962-baleno-retractable-mirror-repair
although there is nothing like combining it with keyless entry, nut you can see the circuit inside a retractable mirror.
dont have the detailed pics while i was installing wirings, but its very simple.