Creating a leak protection above windows and doors is a part of wall waterproofing and preventing leaks from above. However another aspect is protecting walls from windows and doors leaking by themselves. This is typically accomplished by creating a secondary leak protections under windows and doors.
See on this photo consequences of not following such approach.