Density-Ratio Losses for Post-Hoc Learning to Defer