Dronabinol works by interacting with the body's endocannabinoid system, specifically binding to CB1 receptors in the brain. This interaction can help alleviate nausea and stimulate appetite, which is particularly useful for cancer patients undergoing chemotherapy.