This research study is for those with Type 2 Diabetes and obesity or overweight. The purpose of the study is to see if the study medication called Petrelintide is safe and effective in reducing body weight. Participants will add either a once weekly injection of Petrelintide or placebo. The study is testing three different doses of the medication: 5.0 mg, 7.0 mg, and 9.0 mg.