How to generate a countertop in a special-shaped space

Hello, in custom cabinets and wardrobes, you can use the countertop settings to quickly create countertops with special shapes. You can achieve the desired countertop effect by extending the lines of the countertop and adding midpoints. The operation screenshots are as follows: