Context-Guided Diffusion for Out-of-Distribution Molecular and Protein Design