actually it's only the light part. recent studies from South Korea and Australia find, that lack of light exposure causes vision impairment
Plenty of studies for that, too.
(not strictly for "outside" though, you can also look out of the window regulary, it is so that your eyes refocus and relax )