Copying My account/Login/Register button outside header
You can try wp_loginout() function which will display Login or Logout text (based on whether the user is logged in or not) in an anchor tag. And, then you can apply CSS styling to make the anchor tag to appear like a button. Hope this logic helps you. See here for reference.