Yeah, yeah. There's good things, there's bad things...
I think the trick is being able to acknowledge the bad things while not hyperfocussing on them or letting them generalize your thoughts to think that everything is bad, so that you can still enjoy the good things for what they are.
It's also possible to try and avoid everything bad in order to create a fake internal utopia, and it can work for a while, but it usually doesn't last forever and I think that's an unhealthy way of being in the world.
Obviously, if a situation is entirely toxic, it makes perfect sense to disengage from that, but if it's something that's more or less unavoidable during everyday life or important in some way, in that case I think shutting yourself in isn't a good idea.
There is this story of the monk who, with one hand holds on to a cliff. If he lets go, he falls to his death.
In front of him, there is a little flower.
He knows that he's about to die and he's afraid, but regardless of that, in his last moments, instead of falling into complete desperation he decides to enjoy the beauty of the flower that's growing in front of him.
He's not delusional about it, he fully knows he's doomed. But he's intentional in choosing a path to greater happiness.
That's not to say that this is a "cure your clinical depression with this simple trick". It's not that simple, but I think there is something to be learnt from that story about accepting the good even while facing hardship. It takes being able to handle conflicting feelings and thoughts at the same time, and still being able to differentiate between them and choosing to appreciate the good when it makes sense to do so.