Basic hard surface editing: What is the quickest way to make a frame around an opening?
If I understand correctly, what you can do is create some additional edge loops, select the inner side faces, AltE > Extrude Along Normals (enable the Offset Even option in the Operator box), then extrude the top faces up: