If yr talking about the drain vent then I believe (nonpro) that there are minimum clearances from windows and doors (10ft?). Most of the time, this means exiting thru the roof.
If yr talking about exhaust vent, then dryer and bath vent should not be connected anyway. But both are ok to vent thru rim joist/side wall. There might still be clearance req's for windows/doors, but they're more forgiving than the plumbing vent clearance restrics.