A dharma gate you walk through, but the idea of a dharma window is that you are just looking through. When something difficult arises in your life, when some situation triggers a reaction, take advantage of this dharma window. Bring that image in front of you and see what it actually is. If you just believe your thoughts about it, you will go in circles.
https://www.youtube.com/watch?v=XhXsngKXpVk