It is not possible to make some specific objects accept shadows only from another specific object(s) if that's what you would like to do.
How about making your window glass material darker but only when seen directly? (it would not affect reflections, refractions, GI, or lighting in general, but anything behind that window would appear darker)