Beta update for Gboard app gives a floating keyboard another shot
2

You might recall that in September, Google tried out a floating keyboard for the beta version of the Gboard app. But it apparently wasn't ready for prime time and Google removed the feature. Now, beta testers for Gboard will get another shot at a floating keyboard in version 7.6.13.215505041 of the Gboard app. The floating keyboard can be placed anywhere on the screen, resized, and even used for swipe typing.
To enable the floating keyboard, tap the left arrow on the Gboard suggestion bar. On the right side you'll see a three dot icon. Click on it and tap on "floating." Drag the keyboard around by the "bump" on the bottom (View the image at the top of this article). To "dock" the floating keyboard and return it to normal size, drag it to the bottom of the screen.

First things first, go to the Play Store and sign up to be a beta tester for the Gboard app
source: DroidLife
Things that are NOT allowed: