Wouldn't be legal here as you need 2 doors between the kitchen and the toilet for hygiene reasons.

I did wonder if the glass was electrochromic, which would be easily possible