How to keep edges around the square hole sharp?
You can try using Edge Crease by pressing Shift + E after selecting the edges around and inside the hole.

Make sure you select all of these edges for the desired result. 



I added an Edge Split modifier at the end to get rid of the smooth shading artifacts.

Hope this helps!