Geometric interplay between function subspaces and their rings of differential operators