Its quite simple really...
The Red areas are the DWM Frame Top and Bottom Images for the frames with shadows
The Blue areas are the DWM Left and Right for shadowed and shadowless frames
The Yellow areas are the shadow left and right images
The green are the shadow top and bottom images.
Its important the widths of the left and right shadows, fit with the width of the top and bottom images, so it all lines up.