Pair iMac and Android using Bluetooth
If you open Bluetooth to iMac and iPhone and also use the same Apple ID on both, these two device will “automatically” connect to each other. 

But the usage of those connections are heavily limited. Here’s some example


Continuity
Personal Hotspot


and some few more that I tend to forget.