Sleep on a bed and you'll start to dream.
Connect your Switch to the Internet and upload your dream; you must have a Nintendo Switch Online subscription.
Then, search on Internet the dreams codes and visit the islands of other players (my dream code is: DA-7221-5030-5761).
Video guide: