In the max lights panel, select VRayLight and create
one.
From the front viewport, resize the light using the U
and V spinners, so that its size is similar to the window.
Set it inside the room, leaving a small gap between the
light and wall and ensuring the placement does not
intersect with the wall or the window frame.
Intersections can result in the image becoming too
grainy.