Although ps is ok, it is troublesome and inflexible to make.
1, open the rectangle tool-draw a rectangle.
2. Copy Rectangle-Enlarge-Fill Color
3. Open the multilateral tool-adjust to triangle-draw triangle.
4. Select-arrange the top.