Most of the positive drive comes from the topmast above the hounds. In this part of the rig, wind is more twisted to the side, partly because there is no jib or genoa interfering, and partly because of the head vortices shed by the sails. Thus, for a 9/10-rigged, modern boat equipped with a jib rather than a genoa, the mast drive can be negligible or it can be even negative, real drag.
In case of a genoa equipped boat, the lower part of the mast lies in a more beneficial airflow than for a jib equipped boat. Aft rake contributes to the intensity of the vortex behind the mast. This could be one reason for the benefits of raking the mast aft in fractionally rigged boats.
Note that in aerodynamic terms, the mast does produce drag, as the aerodynamic drag is defined in the direction of the apparent wind. But in hydrodynamic terms, where the drag is oriented against the direction of the motion of the boat, the drag is often negative.