The old workaround goes like this. At Flem Manor, click the left-hand statue to enter the library, then head to the shopping mall and type rainbow-time into the code box. Go straight into the carpet shop and out again, then visit the pet shop, click the sand pit and enter RAINBOW-TIME there too.
Next, speak to the shopkeeper and buy a pet, pressing buy twice, then sign out. Leave the account alone for a week — logging in during that week is said to break the process.
After seven days, return to your nest, place a fence, go inside your room and check the chest: a bed and bowl should be waiting. Put them out and within a couple of minutes your pet arrives.
Be aware that these code-based tricks are patched frequently, so the sequence may no longer work on the current version of the game.