Use a a router to create a recess in the opening.
Or use an extruded molding, mitre cut the ends and frame the opening.