Amplitude Analysis and Branching Fraction Measurement of D0 → K−π+π0π0