A Robust Framework for Distributional Shift Detection Under Sample-Bias