https://www.reddit.com/r/nba/comment...flagrant_foul/
Check this one out from a few months ago. You can see Harden visibly throw his leg forward to draw a foul, likely hoping that Horford would come up under his landing point (which is exactly what happened). Horford draws a flagrant on review.
It's bullshit, yes (and it takes away a defender's ability to contest properly) but that's the NBA as it stands.