How much space do I need between my door and my gate?

At least 65 mm between your door to the nearest obstruction in the area, whether that’s the gate or the gate handle.