It may not be 100% the same solution, but this capacitor / ionic plugin will achieve this effect. You need to install the plugin, create a floating view in the bubbleWebView.html file, and add an icon in the capacitor config in Base64 format. https://github.com/TomHamster/capacitor-floating-bubble
Communication between the Capacitor app and the Floating view is handled by
FloatingBubblePlugin
addListener('onBubbleMessage', ...) - receiving messages from the Capacitor app
sendToBubble(...) - sending to a floating frame
FloatingBubbleWebViewMessenger
sendMessage(message: string) => void
window.addEventListener('onCapacitorMessage', ...)