Hello I am a solicitor with over 15 years experience. I will try to help you with this.
Can you give me some more information please? Is the local authority your landlord? Can you explain about the gate a little more please? Why does you having a dog mean you want it unlocked. How often and for how long has he been banging on your window? Why does he do it?