Provide access to the viewport height and width through when developing a custom visual. When developing custom visuals that act as controls like date range pickers or combo boxes the visual cannot extend beyond the visual host.
The only way to make the visual useful is to provide enough height and width for the visual when building your report, this takes up tons od sapce and make the report development and use very clunky
Please use Dialog Box API to place your components:
Creating a dialog box in a Power BI visual - Power BI | Microsoft Docs