I know someone who does this in their office. I wouldn’t think anyone could get good results, considering their plants only get adequate sunlight for a few brief hours during the day. I suppose someone could supplement with electric UV light, but I don’t think many people do so.
Wouldn’t putting a UV light in a window for the window garden risk visual damage to anyone looking at it?