#5
As far as I know, the biology of most
Homoneura species involves feeding on decaying leaves. It may be that these flies have spent the summer as pupae, and are emerging now to take advantage of the new crop of leaf litter. Difficult to say exactly where they're coming from, but I would suggest that they are probably attracted to light, and coming through a window.