If we can learn to have a very spacious mind, allowing these thoughts and emotions to come and go, allowing sensations to arise and pass away, and we are in that spaciousness, not reacting to anything then at that moment there is freedom.
In the Tibetan tradition they use a very nice simile. They compare the mind to a spacious sky and the thoughts to clouds. The clouds do not affect the sky, the sky does not affect the clouds. So this shows that it is important to have that spaciousness, that spacious mind, allowing anything to arise and pass away.