Thermospheric Impact on the Magnetosphere through Ionospheric Outflow