Your friends are right to despise philosophy, if by "philosophy" you mean the kind of thing that most students learn in college. I once taught a course like that, too, and I'm not proud about it at all. In order to appreciate the value of philosophy, you need to define it in a different way.
Philosophy is not a collection of knowledge, but a way of life that never tires of asking "why?", uses the power of reason to figure out the answer, and tries to live according to that answer. In other words, the life of a philosopher is a life of criticism. It is a life of reflection, a life dedicated to developing and refining the one faculty that distinguishes us from all other animals.
I honestly don't give a shit about any of the dead white guys that we call philosophers. Because the point of philosophy is not to learn who they were and what they said. The point is to learn the way of life that those people exemplified. The content doesn't really matter; most of that is wrong anyway. The methodologies, however, are worth learning. How to spot a fallacy, how to construct convincing counterexamples, how to go about dissecting a tightly woven rhetoric so that it collapses as spectacularly as possible.
I think philosophy is to the mind what exercise is to the body. You don't become an athlete by memorizing trivia about famous athletes; you become one by emulating their daily routines. Similarly, you don't learn philosophy by memorizing what Descartes said; you become a philosopher by learning to think like him in everyday life and practicing it until you're good at it.
STEM fields also help you train your mind, but usually in more specific ways. Philosophy is more general. It's like maintaining a generally active lifestyle vs. training specific muscles.