M is any point on the line AB. Squares of side length AM and MB are constructed and their circumcircles intersect at P (and M).
Pick up a pencil, do some drawing, play with this. Look at angles APM, MPD, AEM, MCD and look for cyclic quadrilaterals. The proof that the lines AD and BE produced pass through P takes three or four lines.