Glass blocks UV-B and UV-C, but not UV-A (unless you have a film). Many mushrooms can be enriched with UV-A, but UV-B is best. So yes, I agree, better to place outside in direct sun (or window open). But building the habit is the harder part for people tbh.