'Customization Bottom Sheet Dialog's View

I just want to get the BottomSheetDialog like below: margin from the system window. How can I get like this?

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source