If you need a window frame to cast the shadow, you can set one model to cast shadow, then bring in a second model without the glass bits, and put a full transparent material on it, making sure that is casting shadows…and put it in the same place. That way you have the window will full textures including glass textures, and then the shadow from the window frame.
Perhaps their is an easier way around it, but that’s what I did.