You say it onlt smells when the window is open!
I would hazzared a geuss that the smell is coming in from outside and you probably have a vent (stink) pipe near by. Did you saide the bathroom is next door?
I would look into this option and maybe extend the pipe.
© 2017 Renovate Your World LLC