Pyramus and Thisbe an essential component of the play

Why is Pyramus and Thisbe an essential component of the play? Which subplot, in particular, thematically resembles the Greek myth?