it's not illegal but your neighbor will not be happy that your rain water is being directed to their house. the worst thing that can happen is to be at loggerheads with your immediate neighbour.
retractable awnings shouldn't need to involve a PE. if needed, the supplier's own PE should be doing the design and calculation instead of you engaging one directly.