Best method to"Extrude inwards over edge"?

Im not shure how to best describe the result, but you’ll see it in the image.
In a lengthy process I extruded separatly the vertical and “horizontal” lines inward and then stitched them together after deleting some faces. It was a very fumbly process. What is the best method to achieve this?