My house has a sliding glass door as the main entrance and I need a solution to have it secure from tiny hands. My problem is it needs to be able to unlock and lock on both sides of the door so a pin drop or cross bar won’t work.
You can get a lockset with a numerical keypad on both the inside and outside hardware. i.e. no inside knob on the lock for little fingers to let themselves out. It might technically be a fire hazard, though, unless you have an alternate means of quick escape. Keep a safety glass breaker tool by the door but up high or something.
Most keypad sets use a deadbolt system, because it’s a sliding door a deadbolt won’t work because it slides open. I have seen other locks that use clasps but none of them have keypads on both sides of the door.
edit: Last night when i looked on Amazon, it appeared that there were several for a sliding patio door. There are thin ones for sure, you could ask in the questions if they will work for mortise locks. I know you dont specifically need the solution to be “smart home” capable but maybe one of these solutions would align with your needs.