Intrinsic Flat Bands and Magnetic Proximity in Two-Dimensional Materials