$$\varvec{\mathrm { D^+}}$$ Event-Shape Engineering Studies in Pb–Pb Collisions at $$\varvec{\sqrt{s_\mathrm {NN}}}=5.02~\mathrm {TeV}$$