Hold Hatch Up

Does anyone have a simple way to hold a hatch up? The hatch I have is a
simple rectangle that sits over top of the lip around the edge of my
companionway.

Looking for a solution that will hold the hatch up at a 45 degree angle,
and won't bite me on the way in and out of the cabin.

Thanks
Shorty