But yes, this is how UV light is sometimes actually used. Shining on an empty table in a lab, for one hour. Even then, you don't take it as a 100% guarantee that there are no viruses left.
Second, UV light hurts humans, too. Ignore the safety and remain in the room when the UV light is turned on, you get cancer. In the lab, people are careful. In an average household, it would be a question of time before someone gets exposed to the UV light.
If you are careful, you can use the UV light on your room, or kitchen, and it is "better than nothing". (Not sure if you even need to cover your windows, because I think glass already reduces the UV part of light, plus the intensity is reduced by square of distance so you probably wouldn't hurt random people on the street.) But it takes a lot of time, and it only reduces the number of viruses by some fraction.
Considering that COVID-19 is usually spread by air, not by touching surfaces, opening your windows probably achieves much more than using the UV light in your room or kitchen. For some other viruses, the numbers could be different.
Also, the dishwasher already kills a lot of viruses by using higher temperature than when you wash dishes by hand.
Proper UV sterilization takes time (minutes, hours). I'd worry that many people will just wave a light and think "its clean". It doesn't work that way.
Pretty sure they work fine. But they take a lot longer than wiping with soap and hot water or disinfectant. For dishwashers it's going to be difficult to make sure you expose every surface of every utensil, compared to filling the machine with hot air and steam. You'd need a much more space-hungry design than standard models.
It can create Ozone, which kills bacteria and damages respiratory tracks. It can be a bug or a feature in the right hands.
Hard UV also leaves a nasty sunburn.
In Russia it's used for domesric disinfection for a long time - you turn on a big lanp and leave the room for a few hours.
HN sometimes has a misplaced admiration of ex-USSR-ian resourcefulness, but the cultural climate of top-secret alternative cures and conspirology is exactly what popularizes breathing cures, DIY bleach injection, "bringing the light inside," and other desperate, dangerous self-experimentation.
A top result for "ozonator" in Russian advertises that ozone therapy is "used for wound-healing, immune system recovery, removal of cellulite, and obesity." Just breathe it in!
[1] https://upload.wikimedia.org/wikipedia/ru/0/00/Ozonator.jpg
Sure there is a fascination with alternative medicine in Russia, but thats a separate problem, among many others.
There were folks advising my parents to treat skin burns with urine of a young piglet, but fortunately no-one was taking them seriously.