Out-coupling of light using windows, e.g. specially adapted for back-reflecting light to a detector inside the housing