Floating Notifications on Xiaomi phones

Hey, I’m facing issue on Xiaomi phones of floating notifications…Does any one know how to enable it programmatically?