glue the mitered corners of mdf door trim casing

Apply glue to both contact surfaces of the moldings.