The Millennium Falcon is docked on the conning tower of an Imperial Star Destroyer Throughout the galaxy, many starships possessed a landing claw: a gripping device that used magnets or mechanical means to attach itself to nearly any surface. These claws allowed ships to anchor themselves to unconventional locations, such as the command tower of an Imperial-class Star Destroyer.
The Millennium Falcon had one of these devices installed.