This is a great idea.
However keep in mind that sun shining through the window, even if natural, can be a source of eye strain too.
Strange as it sounds, I prefer the constant lighting of the fluorescent lamps in my office.
I wrote software to at least adjust brightness: https://len.falken.directory/backlight-auto.html
If you're lucky, your monitor can be controlled over HDMI or DisplayPort commands.
Matching the room brightness is exactly why I wrote it and because I wanted a nearly-dependency-free binary.
This is the kind of thing I would expect my monitor to do for me (unless I manually override it). Brightness AND color (so, cooler during day, when the sun is shining through the windows, warmer at night, when the lightbulbs try to approximate incandescent lighting).