You can account for this friction, but it is totally negligible. The basic reason is that the Sun and planets are very compact, while the distributed gas is very sparse.
The density of the interplanetary medium is of order $10^7$ particles per cubic metre. Let's say they are hydrogen atoms, so the mass density is of order $\rho \sim 10^{-20}$ kg/m$^3$.
The drag force on something moving through a fluid is
$$F_d \sim \rho A v^2\ ,$$
where $A$ is the effective area presented by the object and $v$ is the relative velocity of the object and fluid.
Let's assume $A= \pi R_E^2$ for the Earth, with $R_E \sim 6400$ km, and that $v \sim 30$ km/s, the orbital speed around the Sun. Putting everything in SI units we find $F_d \sim 10^3$ Newtons. Maybe that sounds a lot, but given the mass of the Earth it only produces an acceleration of $10^{-22}$ m/s$^2$ and thus is utterly negligible.
You can do a similar analysis for the Sun in orbit at 250 km/s around the Galaxy, with an interstellar density of about $10^6$ particles per cubic metre. Again, totally negligible.