You may use the MAUI Shell flyout to achieve this.
Refer: https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/shell/flyout?view=net-maui-7.0
The sample code can be downloaded from https://github.com/dotnet/maui-samples/tree/main/7.0/Fundamentals/Shell
Refer the following section to see a sample similar to your requirement.