add DRectangle, add mousePressed event in dwindow