Switches outside the bathroom are a common thing in Massachusetts, where I live. I'm told that at one time many decades ago, there was a clause in the state electrical code that said that outlets and switches had to be some minimum number of feet (like six feet) from any source of running water in the same room. Since bathrooms tended to be small, making compliance difficult, the workaround was to put the light switch outside the room. It continued because decades of Mass. residents had grown accustomed to the placement.
"Switches (including wall switches) controlling luminaires … shall be located not less than 1 m from a bathtub or shower stall (this distance measured horizontally between the switch and the bathtub or shower stall) without piercing a wall, partition, or similar obstacle" not an issue without a bathtub or shower, but still important to consider if anyone is planning on doing this
@jeffostroff I retired from construction after 38 years and believe me I can tell you are a hack . Handyman at best . Nothing you did in that video told me you were Pro