The LG UltraFine displays do support this (in fact there's no OSD/controls on the physical things at all) so it definitely is possible and something LG can do
Automatic dimming only works in the recently refreshed (mid 2019) UltraFines. It doesn't work in the original models sold from 2016-2019, despite advertising and product documentation claims that it does.