While the topic is taboo in the West, there are many Eastern traditions that encourage discussion, and even meditation on death. Buddhist practitioners who are intellectually inclined are often recommended to meditate on the various stages the body goes through after death so as to remove attachment one has to their body. A Buddhist view of the body might come as a surprise, but the body should be viewed as disgusting and repulsive.
Something I always found quite fascinating was the Tibetan Book of the Dead which I first read in middle school. These three foundations always struck me as "liberating":
1. Death is certain
2. The time of death is uncertain
3. The only thing that can help us at the time of death is our mental development
Here is a bit more if you are interested:
http://www.buddhanet.net/deathtib.htmTo the OP's point on thoughts of death during a depressive episode - be careful not to obsess, or let such thoughts overwhelm you. There is an important distinction to be made between skillful and unskillful contemplation of death. Unskillful thoughts on death will create negative feelings, and ultimately cause you to suffer. If you want to contemplate death skillfully, or mindfully, I do recommend doing so in the Buddhist way, of which there are many resources online and teachers willing to guide you.
Here is a decent guide:
https://kadampa-center.org/sites/default/files/DeathHO5.pdf