Can you cure resin with sunlight through a window?
The glass will block most of the uv light; but not all. It will depend on the type of light that the resin is sensitive to; in order to determine if it will continue to cure behind a glass window in direct sunlight. Some resins also sensitive to blue light. You will need to look at the material data sheet for the resin to be able to know for sure. Be advised though, that the resin does not stop curing, and will continue to cure slowly over time, just sitting on the desk.

https://www.thoughtco.com/does-glass-block-uv-light-608316
From the link:


  Glass that is transparent to visible light absorbs nearly all UVB. This is the wavelength range that can cause a sunburn, so it's true you can't get a sunburn through glass. However, UVA is much closer to the visible spectrum than UVB. About 75% of UVA passes through ordinary glass. UVA leads to skin damage and genetic mutations that can lead to cancer. Glass does not protect you from skin damage from the sun. It affects indoor plants too. Have you ever taken an indoor plant outside and burned its leaves? This happens because the plant was unaccustomed to the higher levels of UVA found outside, compared with inside a sunny window.