If you do not block the smoke from blowing back in, you are going to stink up the house. You can literally cut a vent port out of cardboard or foam and tape that into the window. It doesn’t have to be fancy, but it does have to be sealed air tight if it is in the house.
There are many creative solutions for venting outdoors through a window, get some aluminum tape to seal around it, and it should be fine.
And you can do a search for “window vent” and find a lot of ideas.