Here is the shape I want to achieve, sharp square hole in the cylinder:
I did inset, extrude and beveled edges to keep square form.
The problem is when I am applying subsurf modifier, it distorts hole edges with weird overhangs:
Here is my blender file: