I do not practice Yoga myself but do know others who do, or practice Tai Chi, Qui Gong, or other form; essentially from my perspective from very limited participation (about 4 sessions of the varying practices mentioned above) it can be used as a form of meditative practice, particularly involving the four postures or clear knowing section of the satipatthana sutta.
It is well worth noting, particularly regarding the philosophical side of any practice, that the Buddha never said other philosophies were completely wrong about everything, and on occasion either reinterpreted the philosophy/practice to be inline with right view, changing very little, or borrowed the part/s that were useful/in-line with right view.
it is a take what is useful, situation the better you understand and are in-line with right view the easier it is to look at a philosophy or interpretation and see the benefiscial aspects of it, and thus able to disregard the unuseful parts
He who knows only his own side of the case knows little of that. His reasons may be good, and no one may have been able to refute them.
But if he is equally unable to refute the reasons on the opposite side, if he does not so much as know what they are, he has no ground for preferring either opinion …
He must be able to hear them from persons who actually believe them … he must know them in their most plausible and persuasive form.