A large fraction of UV radiation is blocked even by single pane glass.
If the 'health' benefit or bio signal for this effect, requires UV radiation then there is very little that can substitute being outside for 1 or 2 hours a day depending on the season.
If we are talking about humans and the hormones associated with the 24-hour sleep/wake cycle, they are largely influenced by blue light which is in the visible spectrum. It's part of why screens without orange-shifting software will tend to keep you wide awake at night.
Interestingly, red wave (IR) light appears to influence cortisol levels but not melatonin. [1] IR also makes it through windows as any cat can attest.
Getting outside for an hour or two as often as possible, regardless of the season, is probably a good idea, but it doesn't appear to be strictly necessary for modulating circadian rhythms.
If the 'health' benefit or bio signal for this effect, requires UV radiation then there is very little that can substitute being outside for 1 or 2 hours a day depending on the season.