Spintronic properties of 2D heterostructures from laterally connected graphene and hBN quantum dots