iMessage is device centered - your messages are just relayed to desktop by the mobile messaging app. Android messages can do this too [1], So can Samsung [2]
[1] https://support.google.com/messages/answer/7611075
[2] https://www.samsung.com/us/support/answer/ANS00087322/