but if your cockpit is self-draining and vents overboard then it's possible to build a small box to size - open at the bottom - which can fit in the cockpit on top of the grating. That's the way it's done on my boat.
Jerry